import {putMessage,intersect,SS_VALID} from '../Base.js';
import {MDCB_DRG} from '../DRG/MDCB_DRG.js';

export default function BE1_group(record){
    let adrg_zd=[];
    let adrg_zd1=[];
    let adrg_ss=["21.0600","38.0200x002","38.0200x003","38.0201","38.0202","38.1200x003","38.1201","38.1202","38.3200x002","38.3201","38.3202","38.4200x001","38.4200x002","38.4200x003","38.4201","38.4202","38.4203","38.6200x002","38.6200x003","38.6200x005","38.6200x006","38.6200x007","38.6201","38.8200x003","38.8200x007","38.8200x008","38.8201","39.0x02","39.2200x001","39.2200x002","39.2200x003","39.2200x004","39.2200x005","39.2200x006","39.2200x008","39.2200x009","39.2200x010","39.2200x011","39.2200x012","39.2200x014","39.2200x015","39.2200x016","39.2200x018","39.2200x019","39.2200x021","39.2203","39.2205","39.2206","39.2207","39.2208","39.2209","39.2211","39.2800x002","39.2800x003","39.2800x005","39.2800x008","39.2800x009","39.2800x010","39.2900x057","39.3100x005","39.3109","39.3204","39.5001","39.5200x007","39.5200x008","39.5300x013","39.5300x019","39.5300x020","39.5300x021","39.5302","39.5303","39.5304","39.5900x006","39.5900x013","39.8901","39.9800x003"];
    let adrg_ss1=[];
    let dept_list=[];
    
    if (true && record.ssList && adrg_ss.includes(record.ssList[0])){
        putMessage('符合BE1入组条件，匹配规则：主手术匹配');
        let drg=new MDCB_DRG();
        
        if (drg.BE13_group(record)){
            return 'BE13';
        }

        if (drg.BE15_group(record)){
            return 'BE15';
        }

        return 'BE1';
    }else{
        return '';
    }
}
  